import {
	createApp
} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'


// 新增代码：引入全部组件及样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

axios.defaults.baseURL='http://127.0.0.1:3000/'

router.beforeEach((to, from, next) => {
	document.title = to.matched[0].meta.title
	next()
})
const app =createApp(App)

app.use(router).use(store).use(ElementPlus).mount('#app')

app.config.globalProperties.$axios = axios